package com.xxl.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xielong
 * @version 1.0
 * @date 2021/11/10 4:39 下午
 */
@Slf4j
@RestController
@RequestMapping("/log")
public class LogController {

    /**
     * 打印日志
     *
     * @param msg
     * @return
     */
    @RequestMapping("/printLog")
    public Object printLog(String msg) {
        log.info(msg);
        return "ok";
    }
}
